// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.radio.script;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import zombie.radio.globals.RadioGlobal;

public final class RadioScriptInfo {
    private final Map<String, RadioGlobal> onStartSetters = new HashMap();
    private final List<ExitOptionOld> exitOptions = new ArrayList();

    public RadioScriptEntry getNextScript() {
        RadioScriptEntry radioScriptEntry = null;

        for (ExitOptionOld exitOptionOld : this.exitOptions) {
            if (exitOptionOld != null) {
                radioScriptEntry = exitOptionOld.evaluate();
                if (radioScriptEntry != null) {
                    break;
                }
            }
        }

        return radioScriptEntry;
    }

    public void addExitOption(ExitOptionOld exitOption) {
        if (exitOption != null) {
            this.exitOptions.add(exitOption);
        }
    }
}
